app.factory('chargeDetailService', [ '$resource', function($resource) {
    return $resource( '/chargedetail/:action',{
        action : '@action'
    },{
        findChargeDetail : {
            method : 'POST',
            isArray : false
        },
        findDetails : {
            method : 'POST',
            isArray : false
        }
    });
} ]);